package com.talent.web.utils;

import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;

import java.time.ZoneId;
import java.time.format.DateTimeFormatter;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @Author: hszhou
 * @Date: 2025/4/3 10:05
 * @Description: 必须描述类做什么事情, 实现什么功能
 */
public class TlConstant {
   public static final DateTimeFormatter FORMATTER = DateTimeFormatter.ofPattern("HH:mm:ss").withZone(ZoneId.systemDefault());

   /**
    * 方便管理多个sse连接
    */
   public static final Map<String, SseEmitter> SSE_CACHE = new ConcurrentHashMap<>();

   public static final String AUTHORITIES ="authorities";

   public static final String TALENT = "talent";
}
